#include <stdio.h>
#include "ofc/DCRC32.h"

int main(int argc, char *argv[])
{
  DCRC32 *crc = [DCRC32 new];

  [crc update :"This is an example for the CRC32 class"];  // Feed the CRC32 with a c-string

  [crc update :"This is data\0With string terminator" :35]; // Feed the CRC32 with data

  printf("CRC32 value: %lx.\n", [crc crc32]);              // Get the CRC32 value

  [crc free];                                              // Cleanup

  return 0;
}
